@use "sass:math";
@import '../../var';
@import '../../common.scss';
.back-cover {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: $zindex-cover;
    background-color: rgba(0, 0, 0, 0.2);
    transition: all math.div($transition-time, 2);
    .closeBox {
        height: 25%;
    }
}

.hide {
    z-index: -1;
    opacity: 0;
}

.comment-container {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: $zindex-dialog;
    display: flex;
    flex-direction: column;
    //Instead of the line below you could use @include box-sizing($bs)
    box-sizing: border-box;
    height: 75%;
    padding: $lg 0 0;
    background-color: #fff;
    //Instead of the line below you could use @include border-radius($radius, $vertical-radius)
    border-radius: $md $md 0 0;
    //Instead of the line below you could use @include transition($transition-1, $transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9, $transition-10)
    transition: opacity $transition-time, transform $transition-time;
    pointer-events: none;
    pointer-events: auto;
    &.hide {
        z-index: -1;
        transform: translateY(100%);
        opacity: 0;
    }
    .comment-input {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 25rpx $lg;
        background-color: $bgcolor-gray;
        border: 1px solid rgba(230, 230, 230, 1);
        .input-placeholder {
            flex: auto;
            min-height: 72rpx;
            margin-right: $xl;
            padding-left: $md;
            padding-right: $md;
            color: $title-color;
            font-size: 26rpx;
            background-color: $bgcolor-light;
            border-radius: 35px;
            border: 1px solid #e6e6e6;
        }
        .like-icon {
            flex: none;
            width: $lg * 1.5;
            height: $lg * 1.5;
        }
    }
    .comment-input-fullscreen {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 25rpx $lg 60rpx $lg;
        background-color: $bgcolor-gray;
        border: 1px solid rgba(230, 230, 230, 1);
        .input-placeholder {
            flex: auto;
            align-items: center;
            min-height: 72rpx;
            margin-right: $xl;
            padding-left: $md;
            padding-right: $md;
            color: $title-color;
            font-size: 26rpx;
            background-color: $bgcolor-light;
            border-radius: 35px;
            border: 1px solid #e6e6e6;
        }
        .like-icon {
            flex: none;
            width: $lg * 1.5;
            height: $lg * 1.5;
        }
    }
    .scroll-view {
        flex: auto;
        min-height: 0;
        // overflow-y: scroll;
        height: calc(75% - 48rpx - 110rpx);
    }
    .header {
        display: flex;
        flex: none;
        align-items: center;
        justify-content: space-between;
        height: 48rpx;
        margin-bottom: $lg;
        padding: 20rpx 30rpx;
        line-height: $xl;
        font-weight: 500;
        .total {
            font-size: 40rpx;
            font-weight: bold;
        }
        .close {
            font-weight: 100;
            font-size: 150%;
        }
    }
}

.no-content {
    display: flex;
    justify-content: center;
    padding-top: 200rpx;
    color: $info-color;
}

.comments {
    font-size: $font-size-small;
    .comment-item {
        display: flex;
        padding: 24rpx 28rpx 0;
        .avatar {
            flex: none;
        }
        .info-wrap {
            flex: auto;
            margin: 0 $md;
            padding-bottom: 24rpx;
            border-bottom: 1px solid $bgcolor-gray;
            &:last-child .main-wrap {
                border-bottom: none;
            }
            &-title {
                display: flex;
                align-items: center;
                justify-content: space-between;
            }
            .username {
                margin-bottom: $sm;
                font-size: 26rpx;
                color: $title-color;
                font-weight: bold;
                text {
                    color: $info-color;
                    font-weight: normal;
                }
            }
            .content {
                color: #808080;
                font-size: 28rpx;
                .reply-name {
                    color: $title-color;
                }
            }
        }
        .time {
            flex: none;
            color: #b2b2b2;
        }
    }
    .comment-child-item {
        width: 625rpx;
        margin-left: auto;
        display: flex;
        padding: 24rpx 0;
        margin-right: 28rpx;
        border-bottom: 1px solid $bgcolor-gray;
        .comment-more {
            font-size: 26rpx;
            color: #59b6d7;
        }
        .avatar {
            flex: none;
        }
        .info-wrap {
            flex: auto;
            margin: 0 $md;
            &-title {
                display: flex;
                align-items: center;
                justify-content: space-between;
            }
            .username {
                margin-bottom: $sm;
                font-size: 26rpx;
                color: $title-color;
                font-weight: bold;
                text {
                    color: $info-color;
                    font-weight: normal;
                }
            }
            .content {
                color: #808080;
                font-size: 28rpx;
                .reply-name {
                    color: $title-color;
                }
            }
        }
        .time {
            flex: none;
            color: #b2b2b2;
        }
    }
}